<!DOCTYPE html>
<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
    </head>
    <body>
	    <div id="container">
	    	<div id="header">
	    		<div style="float:left">
		    		<a href="${createLink(uri: '/')}" title="互动信息"><img style="border: 0 none;" src="${resource(dir:'images',file:'title.gif')}" width="700px" height="80px"/></a>
		    	</div>
	    	</div>


			<sec:ifLoggedIn>
			<div id="leftcol">
				<p>友情链接：</p>
				<g:each in="${com.surelution.projects.echo.domain.Link.listOrderBySn()}" var="link">
				<p>
					<g:link url="${link.url }" target="_blank" ><richui:teaser length="6" value="${link.label }"/></g:link>
				</p>
				</g:each>
					<p>
						<g:link url="${resource(dir:'link')}" style="color:blue;">友情链接</g:link>
					</p>
					<p>
						<g:link url="${resource(dir:'predefineMessage/editWithKey?code=FOOT_MESSAGE')}" style="color:blue;">底栏维护</g:link>
					</p>
			</div>
			<div id="rightcol1">
			</div>
			</sec:ifLoggedIn>

			<sec:ifNotLoggedIn>
			<div id="leftcol1">
				<p>友情链接：</p>
				<g:each in="${com.surelution.projects.echo.domain.Link.listOrderBySn()}" var="link">
				<p>
					<g:link url="${link.url }" target="_blank" >${link.label }</g:link>
				</p>
				</g:each>
			</div>
			<div id="rightcol">
				<div class="inner">
				</div>
				<div class='fheader'><g:message code="springSecurity.login.header"/></div>

					<form action="/echo_blog/j_spring_security_check" method='POST' id='loginForm' class='cssform' autocomplete='off'>
						<p>
							<label for='username'><g:message code="springSecurity.login.username.label"/>:</label>
							<input type='text' class='text_' style="width:70px" name='j_username' id='username'/>
						</p>
						<p>
							<label for='password'><g:message code="springSecurity.login.password.label"/>:</label>
							<input type='password' class='text_' style="width:70px" name='j_password' id='password'/>
						</p>
						<p id="remember_me_holder">
							<input type='checkbox' class='chk' name='${rememberMeParameter}' id='remember_me' <g:if test='${hasCookie}'>checked='checked'</g:if>/>
							<label for='remember_me'><g:message code="springSecurity.login.remember.me.label"/></label>
						</p>
						<p>
							<input type='submit' id="submit" value='${message(code: "springSecurity.login.button")}'/>
						</p>
					</form>
				</div>
			</sec:ifNotLoggedIn>
			<div id="blog_main_content"><g:layoutBody /></div>
			<div id="footer">
				<g:set var="footerMessage" value="${com.surelution.projects.echo.domain.PredefineMessage.findByCode('FOOT_MESSAGE') }"/>
				${footerMessage.content }
				&copy;<a href="" target="_blank">上海悍思企业管理咨询有限公司</a>技术支持
			</div>
	    </div>
    </body>
</html>